<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
{eval $user=$this->user; $setting=$this->setting;}
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
<title>Manyou's Control Panel</title>
<meta http-equiv="Content-Type" content="text/html; charset={MY_CHARSET}">
<link media="all" type="text/css" href="css/common/admin/admincp.css" rel="stylesheet" />
</head>

<body>

<div id="append">
</div>
<script src="js/admin.js" type="text/javascript"></script>
<div class="container">

	<!--{if isset($message)}-->
		<!--{eval $type=isset($type)?$type:'correctmsg'; }-->
		<div class="{$type}"><p>{$message}</p></div>
	<!--{/if}-->
	
	<div class="note fixwidthdec">
		<p class="i">通行证是为解决多个系统之间用户整合问题而开发的,是一套跨服务器，跨域名，跨语言的会员共享系统，实现了不同系统之间用户整合，支持不同域名下同步登录，同步退出功能。</p>
	</div>
	<div class="mainbox nomargin">
		<form action="index.php?admin_setting/passport{$setting['seo_suffix']}" method="post">
			<table class="opt">
				<tr>
					<th colspan="2">通行证:</th>
				</tr>
				<tr>
					<td>
					<input class="radio"  type="radio"  {if 1==$setting['passport_open'] }checked{/if}  value="1" name="passport_open" ><label for="yes">开启</label>
					<input class="radio"  type="radio"  {if 0==$setting['passport_open'] }checked{/if} value="0" name="passport_open" ><label for="no">关闭</label>
					</td>
					<td valign="top">关闭状态则通行证则不和其它系统整合，但是设置还会保留。</td>
				</tr>
				<tr>
					<th colspan="2">通行证私有密钥:</th>
				</tr>
				<tr>
					<td><input class="txt" value="{$setting['passport_key']}" name="passport_key" style="width:332px;"></td>
					<td>私有密钥请注意保密，这个整合后是用来加密的key。</td>
				</tr>
				<tr>
					<th colspan="2">将本系统作为:</th>
				</tr>
				<tr>
					<td>
					<input class="radio"  type="radio"  {if 1==$setting['passport_type'] }checked{/if}  value="1" name="passport_type" onclick="$('hidden1').style.display = '';$('hidden2').style.display = 'none';"><label for="yes">服务器端</label>
					<input class="radio"  type="radio"  {if 0==$setting['passport_type'] }checked{/if} value="0" name="passport_type" onclick="$('hidden1').style.display = 'none';$('hidden2').style.display = '';"><label for="no">客户端</label>
					</td>
					<td valign="top">服务器端则整合是以本系统为主。客户端是以其它系统为主。</td>
				</tr>

				<tbody id="hidden1" {if 0==$setting['passport_type'] } style="DISPLAY: none" {/if} >
				<tr>
					<th colspan="2">客户端地址:</th>
				</tr>
				<tr>
					<td><input class="txt" value="{$setting['passport_client']}" name="passport_client" style="width:332px;"></td>
					<td>客户端系统的url地址。</td>
				</tr>
				</tbody>
				
				<tbody id="hidden2" {if 1==$setting['passport_type'] } style="DISPLAY: none" {/if} >
				<tr>
					<th colspan="2">服务器地址:</th>
				</tr>
				<tr>
					<td><input class="txt" value="{$setting['passport_server']}" name="passport_server" style="width:332px;"></td>
					<td>通行证的服务器地址。</td>
				</tr>
				<tr>
					<th colspan="2">登录地址:</th>
				</tr>
				<tr>
					<td><input class="txt" value="{$setting['passport_login']}" name="passport_login" style="width:332px;"></td>
					<td>通行证的登录地址。</td>
				</tr>
				<tr>
					<th colspan="2">退出地址:</th>
				</tr>
				<tr>
					<td><input class="txt" value="{$setting['passport_logout']}" name="passport_logout" style="width:332px;"></td>
					<td>通行证的退出地址。</td>
				</tr>
				<tr>
					<th colspan="2">注册地址:</th>
				</tr>
				<tr>
					<td><input class="txt" value="{$setting['passport_register']}" name="passport_register" style="width:332px;"></td>
					<td>通行证的注册地址。</td>
				</tr>
				<tr>
					<th colspan="2">验证字串有效期(秒):</th>
				</tr>
				<tr>
					<td><input class="txt" value="{$setting['passport_expire']}" name="passport_expire" style="width:332px;"></td>
					<td>建议设置为 3600，既可保证安全又可避免因不同服务器间时间差而产生无法登录的问题。</td>
				</tr>
				<tr>
					<th colspan="2">积分同步:</th>
				</tr>
				<tr>
					<td>
						<input name="passport_credit1" value="1" {if 1==$setting['passport_credit1'] }checked{/if}  type="checkbox">经验值
						<input name="passport_credit2" value="1" {if 1==$setting['passport_credit2'] }checked{/if}  type="checkbox">财富值
					</td>
					<td>其选择需要同步的积分。</td>
				</tr>	
				</tbody>
			
			</table>
			<div class="opt">
				<input class="btn" tabindex="3" type="submit" value=" 提 交 " name="submit"></div>
		</form>
	</div>
</div>

</body>

</html>
